<!DOCTYPE html>












  


<html class="theme-next gemini use-motion" lang="en">
<head><meta name="generator" content="Hexo 3.8.0">
  <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">


























<link rel="stylesheet" href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2">

<link rel="stylesheet" href="/css/main.css?v=7.0.0">


  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png?v=7.0.0">


  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32.ico?v=7.0.0">


  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16.ico?v=7.0.0">


  <link rel="mask-icon" href="/images/logo.svg?v=7.0.0" color="#222">







<script id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Gemini',
    version: '7.0.0',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":false,"scrollpercent":true,"onmobile":false},
    fancybox: false,
    fastclick: false,
    lazyload: false,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>


  




  <meta name="description" content="redis 是很实用的 NOSQL大家族之一，最长用作缓存，现在不讨论技术，先讨论安装。">
<meta name="keywords" content="Linux,Redis">
<meta property="og:type" content="article">
<meta property="og:title" content="Linux下安装Redis">
<meta property="og:url" content="https://blog-test.jetchen.cn/linux-redis-install/index.html">
<meta property="og:site_name" content="嘎里三分熟">
<meta property="og:description" content="redis 是很实用的 NOSQL大家族之一，最长用作缓存，现在不讨论技术，先讨论安装。">
<meta property="og:locale" content="en">
<meta property="og:image" content="http://blogsource.chenkaikai.com/uploads/image/20170629/1498747855955222.png">
<meta property="og:image" content="http://blogsource.chenkaikai.com/uploads/image/20170629/1498748406891661.png">
<meta property="og:image" content="http://blogsource.chenkaikai.com/uploads/image/20170629/1498748406178778.png">
<meta property="og:image" content="http://blogsource.chenkaikai.com/uploads/image/20170629/1498748725680334.png">
<meta property="og:image" content="http://blogsource.chenkaikai.com/uploads/image/20170629/1498748925774646.png">
<meta property="og:image" content="http://blogsource.chenkaikai.com/uploads/image/20170630/1498832172186292.png">
<meta property="og:image" content="http://blogsource.chenkaikai.com/uploads/image/20170701/1498887994922329.png">
<meta property="og:image" content="http://blogsource.chenkaikai.com/uploads/image/20170629/1498751445546284.png">
<meta property="og:image" content="http://blogsource.chenkaikai.com/uploads/image/20170629/1498751733439328.png">
<meta property="og:image" content="http://blogsource.chenkaikai.com/uploads/image/20170629/1498751733806277.png">
<meta property="og:updated_time" content="2019-02-25T15:26:16.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Linux下安装Redis">
<meta name="twitter:description" content="redis 是很实用的 NOSQL大家族之一，最长用作缓存，现在不讨论技术，先讨论安装。">
<meta name="twitter:image" content="http://blogsource.chenkaikai.com/uploads/image/20170629/1498747855955222.png">






  <link rel="canonical" href="https://blog-test.jetchen.cn/linux-redis-install/">



<script id="page.configurations">
  CONFIG.page = {
    sidebar: "",
  };
</script>

  <title>Linux下安装Redis | 嘎里三分熟</title>
  












  <noscript>
  <style>
  .use-motion .motion-element,
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-title { opacity: initial; }

  .use-motion .logo,
  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="en">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta">
    

    <div class="custom-logo-site-title">
      <a href="/" class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">嘎里三分熟</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
    
    
  </div>

  <div class="site-nav-toggle">
    <button aria-label="Toggle navigation bar">
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>



<nav class="site-nav">
  
    <ul id="menu" class="menu">
      
        
        
        
          
          <li class="menu-item menu-item-home">

    
    
    
      
    

    

    <a href="/" rel="section"><i class="menu-item-icon fa fa-fw fa-home"></i> <br>Home</a>

  </li>
        
        
        
          
          <li class="menu-item menu-item-about">

    
    
    
      
    

    

    <a href="/about-me/" rel="section"><i class="menu-item-icon fa fa-fw fa-user"></i> <br>About</a>

  </li>
        
        
        
          
          <li class="menu-item menu-item-archives">

    
    
    
      
    

    

    <a href="/archives/" rel="section"><i class="menu-item-icon fa fa-fw fa-archive"></i> <br>Archives</a>

  </li>

      
      
    </ul>
  

  

  
</nav>



  



</div>
    </header>

    


    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          
            

          
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="https://blog-test.jetchen.cn/linux-redis-install/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="Jet Chen">
      <meta itemprop="description" content>
      <meta itemprop="image" content="/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="嘎里三分熟">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">Linux下安装Redis

              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">

            
            
            

            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">Posted on</span>
              

              
                
              

              <time title="Created: 2017-06-29 23:33:55" itemprop="dateCreated datePublished" datetime="2017-06-29T23:33:55+08:00">2017-06-29</time>
            

            
          </span>

          
            <span class="post-category">
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">In</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing"><a href="/categories/Java工具/" itemprop="url" rel="index"><span itemprop="name">Java工具</span></a></span>

                
                
                  , 
                
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing"><a href="/categories/Java工具/Linux/" itemprop="url" rel="index"><span itemprop="name">Linux</span></a></span>

                
                
              
            </span>
          

          
            
            
          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <p><center>redis 是很实用的 NOSQL大家族之一，最长用作缓存，现在不讨论技术，先讨论安装。</center><br><a id="more"></a></p>
<h3>1、下载安装包</h3>

<p>&nbsp;&nbsp;&nbsp;&nbsp;两种方式，一是外部下好之后上传到 Linux，二是直接在 Linux 内下载，如果你的 Linux 是安装在 VMware 这类虚拟机里的，请自寻百度如何连外网，这个之后再介绍。<br></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;官网地址是：&lt;a href=”<a href="http://www.redis.io/&quot;" target="_blank" rel="noopener">http://www.redis.io/&quot;</a> style=”color: rgb(120, 175, 211); font-family: “black Verdana”, Arial, Helvetica, sans-serif; font-size: 14px; white-space: normal; background-color: rgb(255, 255, 255);”&gt;<a href="http://www.redis.io/" target="_blank" rel="noopener">http://www.redis.io/</a>，下载稳定版本（Stable版本）即可，上面也有 Linux 的下载地址，使用如下命令即可：</p><p></p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">wget&amp;nbsp;http://download.redis.io/releases/redis-3.2.9.tar.gz</span><br></pre></td></tr></table></figure>
<h3>2、解压缩</h3>

<p>&nbsp;&nbsp;&nbsp;&nbsp;我本地使用的版本是2.8.3，这不是重点，重点是安装。<br></p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">&amp;nbsp;tar&amp;nbsp;-zxvf&amp;nbsp;redis-2.8.3.tar.gz</span><br></pre></td></tr></table></figure>
<h3>3、安装<br></h3>

<p>&nbsp; &nbsp; ① 进入解压的文件夹内，执行make 命令进行编译；<br></p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">&amp;nbsp;cd&amp;nbsp;redis-2.8.3</span><br><span class="line">&amp;nbsp;make</span><br></pre></td></tr></table></figure>
<p>&nbsp;&nbsp;&nbsp;&nbsp;② 进入 src 文件夹下，进行安装<br></p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">&amp;nbsp;&amp;nbsp;cd&amp;nbsp;src&amp;nbsp;</span><br><span class="line">&amp;nbsp;&amp;nbsp;make&amp;nbsp;install</span><br></pre></td></tr></table></figure>
<p>&nbsp;&nbsp;&nbsp;&nbsp;安装完之后的界面如下：<br></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;<img src="http://blogsource.chenkaikai.com/uploads/image/20170629/1498747855955222.png" title="1498747855955222.png" alt="linux_redis.png"></p>
<h3>4、部署</h3>

<p>&nbsp;&nbsp;&nbsp;&nbsp;我们把以下的命令移到自己新建的指定目录下，目的是方便统一管理和执行。<br></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;我是在外面指定地方新建了一个redis 文件夹，内含 bin 和 etc 文件夹用来存放移过来的文件。<br></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;下图是redis-2.8.3 里面的内容，红框的redis.conf 和src 下的6 个文件都 cp 走。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;<strong>注意：3.2.9版本是没有redis-check-dump 的，你只需要将 redis-check-rdb cp走就好。</strong><br></p>
<p><img src="http://blogsource.chenkaikai.com/uploads/image/20170629/1498748406891661.png" title="1498748406891661.png"></p>
<p>下图是新建的文件夹的目录结构。</p>
<p><img src="http://blogsource.chenkaikai.com/uploads/image/20170629/1498748406178778.png" title="1498748406178778.png"></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;要运行，使用 ./redis-server 即可，但是这样运行的话，窗口一关闭就GG了，所以我们要持久。<br></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;找到上面 etc 下面的redis.conf 配置文件，vi 进去修改，将daemonize 改为 yes，意思就是让它乖乖仔后台运行。</p>
<p><img src="http://blogsource.chenkaikai.com/uploads/image/20170629/1498748725680334.png" title="1498748725680334.png" alt="linux_redis4.png"></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;好了，一切准备妥当，就差最后一步了。<br></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;进去bin 目录，启动redis服务（同时指定配置文件）：<br></p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">redis-server&amp;nbsp;../etc/redis.conf</span><br></pre></td></tr></table></figure>
<p><img src="http://blogsource.chenkaikai.com/uploads/image/20170629/1498748925774646.png" title="1498748925774646.png" alt="linux_redis5.png"></p>
<p>好了，到此完结，perfect。</p>
<p>注意：当你启动完服务之后，如果你发现Linux本地是可以运行，但是外部根本连接不上这个redis 的时候，有两种情况：</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;① 6379 端口没有对外开放，被防火墙拦截（下文介绍了如何开放该端口）<br></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;② 开放了端口，但是仍然不奏效，你需要输入如下命令查看端口监听地址：netstat -anp | grep 6379</p>
<p>如果下图标红的是 127.0.0.1，说明该端口监听地址为本地，这是你只需要停掉redis的服务，修改配置，设置监听地址即可，然后重启，万事OK。</p>
<p><img src="http://blogsource.chenkaikai.com/uploads/image/20170630/1498832172186292.png" title="1498832172186292.png"></p>
<p><img src="http://blogsource.chenkaikai.com/uploads/image/20170701/1498887994922329.png" title="1498887994922329.png" alt="linuxRedis12.png"></p>
<h3>5、小 tips</h3>

<p>&nbsp;&nbsp;&nbsp;&nbsp;vi 编辑的时候，按 i 是insert，然后按 Esc 是退出，然后直接 ZZ 保存退出，或者 :q 。<br></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;ps -ef | grep redis 是查看 redis的进程。<br></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;netstat -tunpl | grep 63679 是查看 端口号6379的占用情况（Linux默认是 6379，在我们启动时指定的配置文件 redis.conf 中就可以配置）。<br></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;<strong>pkill redis-server</strong> 是杀掉 redis 的服务。<br></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;redis-cli 是启动客户端。</p>
<h3>6、点睛之笔</h3>

<p>&nbsp;&nbsp;&nbsp;&nbsp;既然是在Linux 安装的redis，那么在外是访问不了的，因为6379 的端口并没有开发，那么该如何开放呢，很简单，我现在是在 Centos6.4上，以此为例：<br></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;① 通过命令开启允许对外访问的网络端口：&nbsp;</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/sbin/iptables&amp;nbsp;-I&amp;nbsp;INPUT&amp;nbsp;-p&amp;nbsp;tcp&amp;nbsp;--dport&amp;nbsp;6379&amp;nbsp;-j&amp;nbsp;ACCEPT&amp;nbsp;</span><br><span class="line">&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/etc/rc.d/init.d/iptables&amp;nbsp;save&amp;nbsp;</span><br><span class="line">&amp;nbsp;&amp;nbsp;/etc/rc.d/init.d/iptables&amp;nbsp;restart</span><br></pre></td></tr></table></figure>
<p>&nbsp;&nbsp;&nbsp;&nbsp;② 或者你可以直接去修改配置文件（不太推荐）</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;步骤是关防火墙、修改文件内容、重启防火墙<br></p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">&amp;nbsp;&amp;nbsp;&amp;nbsp;service&amp;nbsp;iptables&amp;nbsp;stop</span><br><span class="line">&amp;nbsp;&amp;nbsp;vi&amp;nbsp;/etc/sysconfig/iptables</span><br><span class="line">&amp;nbsp;&amp;nbsp;service&amp;nbsp;iptables&amp;nbsp;restart</span><br></pre></td></tr></table></figure>
<p>&nbsp; &nbsp; ③ 还有查看端口是否开放&nbsp;<br></p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/etc/init.d/iptables&amp;nbsp;status</span><br></pre></td></tr></table></figure>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;如下图：看到6379 就说明你成功啦。<br></p>
<p><img src="http://blogsource.chenkaikai.com/uploads/image/20170629/1498751445546284.png" title="1498751445546284.png" alt="linux_redis6.png"></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;如何验证下呢，我们打开客户端， 存入一个值，key是ckk，value 是 cool，然后我们通过在Windows 上安装的可视化工具连上，并且看到了我们存入的值。<br></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;成功！<br></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;如下图所示：</p>
<p><img src="http://blogsource.chenkaikai.com/uploads/image/20170629/1498751733439328.png" title="1498751733439328.png"></p>
<p><img src="http://blogsource.chenkaikai.com/uploads/image/20170629/1498751733806277.png" title="1498751733806277.png"></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;<br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>

      
    </div>

    

    
    
    
	
	<div>
	  
		<div>
    
        <div style="text-align:center;color: #ccc;font-size:14px;">------ 本文结束 <i class="fa fa-fighter-jet"></i> 感谢阅读 ------</div>
    
</div>
	  
	</div>

    

    
      
    
    

    

    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/tags/Linux/" rel="tag"><i class="fa fa-tag"></i> Linux</a>
          
            <a href="/tags/Redis/" rel="tag"><i class="fa fa-tag"></i> Redis</a>
          
        </div>
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/linux-command/" rel="next" title="Linux常用命令">
                <i class="fa fa-chevron-left"></i> Linux常用命令
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/springboot-staticfiles/" rel="prev" title="SpringBoot项目访问静态资源">
                SpringBoot项目访问静态资源 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>


  </div>


          </div>
          

  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            Table of Contents
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            Overview
          </li>
        </ul>
      

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <p class="site-author-name" itemprop="name">Jet Chen</p>
              <p class="site-description motion-element" itemprop="description"></p>
          </div>

          
            <nav class="site-state motion-element">
              
                <div class="site-state-item site-state-posts">
                
                  <a href="/archives/">
                
                    <span class="site-state-item-count">68</span>
                    <span class="site-state-item-name">posts</span>
                  </a>
                </div>
              

              
                
                
                <div class="site-state-item site-state-categories">
                  <a href="/categories/index.html">
                    
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                    <span class="site-state-item-count">33</span>
                    <span class="site-state-item-name">categories</span>
                  </a>
                </div>
              

              
                
                
                <div class="site-state-item site-state-tags">
                  <a href="/tags/index.html">
                    
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                    <span class="site-state-item-count">182</span>
                    <span class="site-state-item-name">tags</span>
                  </a>
                </div>
              
            </nav>
          

          

          
            <div class="links-of-author motion-element">
              
                <span class="links-of-author-item">
                  
                  
                    
                  
                  
                    
                  
                  <a href="https://github.com/goldenJet" title="GitHub &rarr; https://github.com/goldenJet" rel="noopener" target="_blank"><i class="fa fa-fw fa-github"></i>GitHub</a>
                </span>
              
                <span class="links-of-author-item">
                  
                  
                    
                  
                  
                    
                  
                  <a href="https://twitter.com/goldenJ51015801" title="Twitter &rarr; https://twitter.com/goldenJ51015801" rel="noopener" target="_blank"><i class="fa fa-fw fa-twitter"></i>Twitter</a>
                </span>
              
            </div>
          

          

          
          

          
            
          
          

        </div>
      </div>

      
      <!--noindex-->
        <div class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
            
            
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-3"><a class="nav-link" href="#undefined"><span class="nav-number">1.</span> <span class="nav-text">1、下载安装包</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#undefined"><span class="nav-number">2.</span> <span class="nav-text">2、解压缩</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#undefined"><span class="nav-number">3.</span> <span class="nav-text">3、安装</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#undefined"><span class="nav-number">4.</span> <span class="nav-text">4、部署</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#undefined"><span class="nav-number">5.</span> <span class="nav-text">5、小 tips</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#undefined"><span class="nav-number">6.</span> <span class="nav-text">6、点睛之笔</span></a></li></ol></div>
            

          </div>
        </div>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright">&copy; 2017 – <span itemprop="copyrightYear">2019</span>
  <span class="with-love" id="animate">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Jet Chen</span>

  

  
</div>









<div class="BbeiAn-info">
    <a target="_blank" href="http://www.miitbeian.gov.cn/" rel="nofollow">浙ICP备17005575号-1</a> <!--a标签中增加nofollow属性，避免爬虫出站。-->| 
	<a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=33010802009043" style="text-decoration:none;padding-left:17px;background:url(/images/icon-police.png) no-repeat left center" rel="nofollow">浙公网安备 33010802009043号</a>	  <!--这里将图标作为了背景，以使得能和后面的文字在同一行-->
</div>

        








        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
          <span id="scrollpercent"><span>0</span>%</span>
        
      </div>
    

    

    

    
  </div>

  

<script>
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>


























  
  <script src="/lib/jquery/index.js?v=2.1.3"></script>

  
  <script src="/lib/velocity/velocity.min.js?v=1.2.1"></script>

  
  <script src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>


  


  <script src="/js/src/utils.js?v=7.0.0"></script>

  <script src="/js/src/motion.js?v=7.0.0"></script>



  
  


  <script src="/js/src/affix.js?v=7.0.0"></script>

  <script src="/js/src/schemes/pisces.js?v=7.0.0"></script>




  
  <script src="/js/src/scrollspy.js?v=7.0.0"></script>
<script src="/js/src/post-details.js?v=7.0.0"></script>



  


  <script src="/js/src/bootstrap.js?v=7.0.0"></script>



  


  


  




  

  

  

  

  

  

  

  

  

  

  

  

  

</body>
</html>
